<?php
$this->pageTitle = $pageInfo['title'];
$this->keywords = $pageInfo['keywords'].','.$this->keywords;
$this->description = $pageInfo['description'];
$this->breadcrumbs=array(
	'所有商品类目' => array('/cate'),
	'商品列表'=>array('/item/list'),
	$pageInfo['breadcrumbs'],
);?>

	<div class="goods_header end_header">
	<div class="sort">
		<?php $this->widget('ext.SortToplist');?>
	</div><h3><?php echo $pageInfo['breadcrumbs']; ?></h3></div>
	<div class="goods">
	<?php
	foreach($data as $k => $v){
		$full_title = strip_tags($v['title']);
		$short_title = mb_substr($full_title,0,30,'utf-8');
	?>
		<div class="toplist_wp">
			<div class="toplist_img"><a target="_blank" href="<?php echo $v['click_url'];?>" title="点击开始购买"><img src="<?php echo $v['pic_url'];?>"  alt="<?php echo $full_title;?>" /></a></div>
			<div class="toplist_detail">
				<p class="toplist_title">第<span><?php printf('%02d',($k+1));?></span>名：<a title="<?php echo $full_title;?>" target="_blank" href="<?php echo $v['click_url'];?>"><?php echo $short_title;?></a></p>
				<p class="toplist_price">惊爆价：￥<span><?php echo $v['price'];?> </span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;30天售出 <strong><?php echo $v['volume'];?></strong> 件</p>
				<p class="toplist_reliable"><em>卖家已提交保证金，加入消费者保障服务。并向您承诺：</em><a class="real_desc" onfocus="this.blur();" title="如实描述" href="javascript:void(0);">如实描述</a><a class="seven_return" onfocus="this.blur();" title="七天退换" href="javascript:void(0);">七天退换</a></p>
				<p class="toplist_credit">卖家信用：<img src="<?php echo Yii::app()->baseUrl;?>/images/credit/<?php echo $v['seller_credit_score'];?>.gif" /></p>
				<p class="toplist_click"><a class="buyclick" onfocus="this.blur();" target="_blank" title="开始购买" href="<?php echo $v['click_url'];?>">开始购买</a><a class="shopclick" onfocus="this.blur();" target="_blank" title="逛逛店铺" href="<?php echo $v['shop_click_url'];?>">逛逛店铺</a></p>
			</div>
			<div class="clear"></div>
		</div>
	<?php
	}
	?>
	</div>

<?php Yii::app()->clientScript->registerScript('hoverToList',"
	$('.toplist_wp').each(function (){
		$(this).mouseover(function (){
			$(this).css({'border':'1px solid #C2D5E3','background':'#F1F7FD'});
			$(this).find('p').css('border-bottom','1px solid #D6F1FF');
		}).mouseout(function (){
			$(this).css({'border':'1px solid #fff','border-bottom':'1px solid #C2D5E3','background':'#fff'});
			$(this).find('p').css('border-bottom','1px solid #f7f7f7');
		});
	});
");?>
